package com.mixsmart.spellsql.where.exp;

import com.mixsmart.spellsql.IExpression;
import com.mixsmart.spellsql.where.CompositeWhere;

/**
 * 不等于null；如：name is not null
 * @author lmq <br />
 * 2016年8月19日
 * @version 1.0
 * @since 1.0
 */
public class IsNotNullExpression extends CompositeWhere implements IExpression {

	private String fieldName;
	
	public IsNotNullExpression(String fieldName) {
		this.fieldName = fieldName;
	}

	@SuppressWarnings("unchecked")
	@Override
	public String build() {
		return this.fieldName + " is not null";
	}

	
	
}
